package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.PriorityUpdateEntity;
import com.xbongbong.saas.domain.entity.ClueAutoAllocationEntity;

import java.util.List;

public interface ClueAutoAllocationModel extends IModel<ClueAutoAllocationEntity> {

    void sort(List<PriorityUpdateEntity> entities, String corpid);

    ClueAutoAllocationEntity getByKey(Long key, String corpid);

    Integer deleteByKey(Long id,String corpid) throws XbbException;

    Integer updateDelByModelType(Integer del, String corpid, Integer modelType) throws XbbException;

    Integer save(ClueAutoAllocationEntity clueAutoAllocationEntity) throws XbbException;

    Integer updateBatchSursplus(List<ClueAutoAllocationEntity> list, String corpid) throws XbbException;

    void insertBatch(List<ClueAutoAllocationEntity> entitys);
}
